/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package topcoder;

/**
 *
 * @author Mohamed.Azouz
 */
public class GreaterGameDiv2 {

    public int calc(int[] snuke, int[] sothe) {
        int tot = 0;
        for (int i = 0; i < snuke.length; i++) {
            if (snuke[i] > sothe[i]) {
                tot++;
            }
        }
        return tot;
    }

    public static void main(String[] args) {
        GreaterGameDiv2 div2=new GreaterGameDiv2();
        int[] snuke={3,5,9,16,14,20,15,17,13,2};

        int[] sothe={6,18,1,8,7,10,11,19,12,4};
        System.out.println(div2.calc(snuke, sothe));
    }
}
